<template>
  <span class="web_name">
    {{ web_name }}
  </span>
</template>

<script setup name="webName" lang="ts">
  import { getToken } from '@/utils/auth';
  import { defHttp } from '@/utils/http/axios';
  import { ref } from 'vue';
  const web_name = ref('物联网平台');
  defHttp
    .get({
      url: '/SysConfig/Anonymous',
      params: { link: 'web_name' },
    })
    .then((res) => {
      web_name.value = res.data.web_name ?? web_name.value;
    });
</script>
